import request from '@/common/utils/request'

export function getTestOrderTaskPvList(data) {
  return request({
    url: 'test-order-task-pv/list',
    method: 'post',
    data
  })
}

export function getTestOrderTaskPvFileList(data) {
  return request({
    url: 'test-order-task-pv/file-list',
    method: 'post',
    data
  })
}

export function addTestOrderTaskPvList(data) {
  return request({
    url: 'test-order-task-pv/add',
    method: 'post',
    data
  })
}

export function updateTestOrderTaskPvList(data) {
  return request({
    url: 'test-order-task-pv/update',
    method: 'post',
    data
  })
}

export function deleteTestOrderTaskPvList(data) {
  return request({
    url: 'test-order-task-pv/delete',
    method: 'post',
    data
  })
}

// 获取我的任务列表
export function getMyTaskList(data) {
  return request({
    url: 'test-order-task/get-my-task-list',
    method: 'post',
    data
  })
}

// 获取我的任务列表
export function changeUser(data) {
  return request({
    url: 'test-order-task/change-user',
    method: 'post',
    data
  })
}

// 回退
export function back(data) {
  return request({
    url: 'test-order-task/back',
    method: 'post',
    data
  })
}

// 获取item和logs
export function getTaskItemsAndLogs(data) {
  return request({
    url: 'test-order-task/get-task-items-and-logs',
    method: 'post',
    data
  })
}

export function getTaskItemsAndLogsTid(data) {
  return request({
    url: 'test-order-task/get-task-items-and-logs-tid',
    method: 'post',
    data
  })
}

export function getTaskItemsLogs(data) {
  return request({
    url: 'test-order-task/get-task-items-logs',
    method: 'post',
    data
  })
}

export function getTaskItemsLogsRecycle(data) {
  return request({
    url: 'test-order-task/get-task-items-logs-recycle',
    method: 'post',
    data
  })
}

// 获取我下发的照片视频任务
export function getMyTaskPvList(data) {
  return request({
    url: 'test-order-task-pv/get-my-task-pv-list',
    method: 'post',
    data
  })
}

// 转交下发的照片视频任务
export function TaskPVchangeUser(data) {
  return request({
    url: 'test-order-task-pv/change-user',
    method: 'post',
    data
  })
}

// 下发照片视频任务
export function addMyTaskPv(data) {
  return request({
    url: 'test-order-task-pv/add-my-task-pv',
    method: 'post',
    data
  })
}

// 完成
export function done(data) {
  return request({
    url: 'test-order-task/done',
    method: 'post',
    data
  })
}

// 查询task列表
export function getTaskList(data) {
  return request({
    url: 'test-order-task/get-task-list',
    method: 'post',
    data
  })
}

export function getTaskRecycleBinList(data) {
  return request({
    url: 'test-order-task/get-task-recycle-bin-list',
    method: 'post',
    data
  })
}

// 查询task列表
export function getTaskInfo(data) {
  return request({
    url: 'test-order-task/get-task-info',
    method: 'post',
    data
  })
}



// 更新item对应的carId
export function updateItemCarIds(data) {
  return request({
    url: 'test-order-task/update-item-car-ids',
    method: 'post',
    data
  })
}

//获取步骤用户

export function getTaskLookStep(data) {
  return request({
    url: 'test-order-task/get-task-look-step',
    method: 'post',
    data
  })
}

export function getTaskLookStepRecycle(data) {
  return request({
    url: 'test-order-task/get-task-look-step-recycle',
    method: 'post',
    data
  })
}
